package com.meeruu.sg.account.core.domain.service;

import com.meeruu.sg.account.core.domain.mapper.FundRequestRecordMapper;
import com.meeruu.sg.account.core.domain.model.FundRequestRecordDO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author yangqintao
 * @date 2019-05-21
 */
@Service
public class FundRequestRecordService {

    @Resource
    private FundRequestRecordMapper fundRequestRecordMapper;

    /**
     * 添加请求流水
     *
     * @param fundRequestRecord
     */
    public void insert(FundRequestRecordDO fundRequestRecord) {
        fundRequestRecordMapper.insert(fundRequestRecord);
    }


    /**
     * 查询请求流水
     *
     * @param outBizNo     外部单号
     * @param platformType 平台类型
     * @param statusGroup  状态集
     */
    public List<FundRequestRecordDO> selectByOutBizNoAndPlatformType(String outBizNo, Integer platformType, List<Integer> statusGroup) {
        return fundRequestRecordMapper.selectByOutBizNoAndPlatformType(outBizNo, platformType, statusGroup);
    }

}
